<{include file="public/header.html"}>
	<!--夺宝-计算详情-->
	<div class="lottery-count">
		<div class="count-table" style="height: 592px; overflow: hidden;">
			<table border="" cellspacing="" cellpadding="">
				<thead><tr><th>用户&nbsp;&nbsp;&nbsp;&nbsp;</th><th>时间</th><th>100个时间值</th></tr></thead>
				<tbody>
				<{foreach from=$item['q_content'] item=val key=key}>
					<tr><td><img src="<{$val['head_img']}>" alt="" /></td><td><{$val['time_str']}></td><td><{$val['timeadd']}></td></tr>
				<{/foreach}>
				</tbody>
			</table>
		</div>
		<a class="count-more openup" onselectstart="return false" onclick="funLotteryCountMore(this)">展开全部100条数据 ↓</a>
		<div class="count-box">
			<p>计算结果：幸运号码=余数+10000001</p>
			<p>1.求和：123456789（上面100个夺宝时间值相加之和）</p>
			<p>2.余数：123456789(Mod)10000（本次商品总需求人次）=50(余数)</p>
			<p>3.幸运号码：50（余数）+10000001=10000051</p>
		</div>
	</div>	
	<script type="text/javascript">
		function funLotteryCountMore(e){
			var toggleHeight = $(e).siblings(".count-table").height();
			if(toggleHeight <= 592){
				$(e).html("收起 ↑").siblings(".count-table").height('100%');
				toggle = false;
			}else{
				$(e).html("展开全部100条数据 ↓").siblings(".count-table").height('592px');
			}
		}
	</script>
<{include file="public/footer.html"}>